package cn.com.dcsgo.service.impl;

import cn.com.dcsgo.mapper.SkuPosterMapper;
import cn.com.dcsgo.model.product.SkuPoster;
import cn.com.dcsgo.service.SkuPosterService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品海报表 服务实现类
 * </p>
 *
 * @author Dcsgo
 * @since 2025-04-07
 */
@Service
public class SkuPosterServiceImpl extends ServiceImpl<SkuPosterMapper, SkuPoster> implements SkuPosterService {

    @Override
    public List<SkuPoster> listBySkuId(Long id) {
        LambdaQueryWrapper<SkuPoster> posterWrapper = new LambdaQueryWrapper<>();
        posterWrapper.eq(SkuPoster::getSkuId, id);
        return baseMapper.selectList(posterWrapper);
    }

}
